{% extends "blog/blog_base.html" %}
{% load blog_extras i18n %}
{% load prefab_tags  %}

{% comment %} 
    Copyright (c) 2006-2007, PreFab Software Inc.
    Copyright (c) 2006, Andrew Gwozdziewycz <apgwoz@gmail.com>
    Copyright (c) 2008, aaloy - apsl.net
    All rights reserved. 
{% endcomment %}

{% block "browsertitle" %}
{% trans "Tags" %}
{% endblock %}

{% block "contentbody" %}
{% if not alpha_list and not popular_list %}
    {% trans "No s'han trobat tags" %}
{% else %}
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width='50%'>
<b>{% trans "Per ordre alfab&egrave;tic:" %}</b><br /><br />
{% for tag in alpha_list %}
<a href="{% BLOG_ROOT %}tag/{{ tag.0|slugify }}/" rel='tag'>{{ tag.0 }} <small>({{ tag.1 }})</small></a> <br />
{% endfor %}
</td>
<td width='50%'>
<b>{% trans "Populars:" %}</b><br /><br />
{% for tag in popular_list %}
<a href="{% BLOG_ROOT %}tag/{{ tag.1|slugify }}/" rel='tag'>{{ tag.1 }} <small>({{ tag.0 }})</small></a> <br />
{% endfor %}
</td>
</tr>
</table>
<br/>
<img src='http://chart.apis.google.com/chart?chs=650x400&amp;chd=t:{{values}}&amp;cht=p&amp;chl={{keys}}' alt="La tarta de la popularitat" />
<h2>{% trans "Subscripcions RSS per tema" %}</h2>

{% for tag in alpha_list %}
    <p>    
	<a href="{% setting 'BLOG_ROOT' %}feeds/tags/{{ tag.0|urlize }}/" title="{% trans 'Darrers articles' %}">                       
    <img src='{% setting 'MEDIA_URL' %}images/rss-button.gif' border='0' height='11' alt='rss per {{tag.0}}'>{{tag.0}}
    </a>
	</p>					
{% endfor %}

{% endif %}
{% endblock %}